Page 106 - 2629_Devagiri_C-6
P. 106

3.  Variable names are not case-sensitive.

                     4.  The logical operator "not" reverses the result of a condition.

                     5.  A compiler translates and runs code line by line.


                  D.  Answer the following questions:
                     1.  What are keywords?






                     2.  Define character set.






                     3.  Differentiate between complier and interpreter.









                     4.  List any two features of Python.









                     5.   In  Python,  how is the order of operations  determined  when  multiple  operators  are used  in an
                         expression?










                                                                                                  21 st
                  COMPETENCY-BASED QUESTIONS                                                     Century   #Critical Thinking
                                                                                                  Skills
                  1.  Debisha wants to calculate the sum of two numbers and display it. She uses the input() function but
                     receives a string instead of an integer. What change should she make to the code to ensure the input
                     is treated as an integer?
                  2.  Sanya is working on a program that calculates the area of a circle. The user inputs radius
                     of the circle. She wants to square the radius and multiply it by pi. Which operator should
                     she use to square the radius?








                  104
                        Premium Edition-VI
   101   102   103   104   105   106   107   108   109   110   111